package org.example.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Configuration
public class LogsThread {
    @Bean("downloadPull")
    public ExecutorService myThread(){
        ExecutorService executorService = Executors.newSingleThreadExecutor();
        return executorService;
    }
}
